package com.richpay.basejava.base07;


public class ConstructorDemo {
	public static void main(String[] args){
		//Worker worker=new Worker();

		Worker w2=new Worker("武媚娘");
		w2.display();

		Worker w0=new Worker("月无心",18,"杭州");
		w0.display();

		Worker w1=w0;//将w0的引用地址赋值给w1，结果w0和w1指向同一个对象
		w1.display();
	}    
}
